<!DOCTYPE html>
<html>
<head lang="zh-CN">
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="format-detection" content="telephone=no, email=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" href="<%=basePath%>favicon.ico" />

<script>
	var _provinceId = '';
	var isLogin = 'false' == 'true';
</script>

<title>地址信息</title>
<link rel="stylesheet" href="<%=basePath%>css/common/normalize.css">
<link rel="stylesheet" href="<%=basePath%>/css/user/login.css">
<link rel="stylesheet" href="<%=basePath%>css/common/iconfont.css">
<link rel="stylesheet" href="<%=basePath%>css/product_v4.css" />
</head>

<body>
	<div class="m-wrapper">
		<jsp:include page="header_member.jsp"></jsp:include>
		<div class="content box-tab" id="box-main">
			<span class="clear"></span>
			<form id="addressform">
				<ul class="my_pic4">
					<li style="display: none;">id <span class="fright"><input
							type="text" style="width: 300px;" value="${address.id}"
							name="addressid"></span>
					</li>
					<li>收货人 <span class="fright"><input type="text"
							style="width: 300px;" value="${address.name}" name="name"></span>
					</li>
					<li>地址 <span class="fright"><input type="text"
							style="width: 300px;" value="${address.city}" name="city"></span>
					</li>
					<li>详细地址 <span class="fright"><input type="text"
							style="width: 300px;" value="${address.address}" name="address"></span>
					</li>
					<li>手机号 <span class="fright"><input type="text"
							style="width: 300px;" value="${address.phone}" name="phone"></span>
					</li>
					<li><input type="checkbox" value="1" name="enable"
						<c:if test="${address.enable==1}">checked="checked"</c:if>>&nbsp;设为默认地址</span></li>
				</ul>
			</form>
			<p class="clear"></p>
		</div>
	</div>
	<!-- 底部按钮 -->
	<div class="addr_btn_div border_top_eee center fixed_bottom">
		<a class="btn_addr" id="logbtn" href="javascript:void(0)"
			onclick="saveaddress()"> <i class="icon_plus">&nbsp;</i>提交
		</a>
	</div>
	<!-- 底部按钮 end-->
	<style>
.tc_loading {
	z-index: 9998;
	width: 36%;
	height: 60px;
	text-align: center;
	border-radius: 5px;
	position: fixed;
	top: 50%;
	left: 50%;
	margin-top: -35px;
	margin-left: -18%;
	font-size: 14px;
	color: #fff;
	background-color: rgba(0, 0, 0, .7);
	padding-top: 10px;
	display: none;
}
</style>

	<script type="text/javascript" src="<%=basePath%>js/zepto.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/util.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/head.js"></script>
	<%-- <script type="text/javascript"
		src="<%=basePath%>js/jQuery-2.1.4.min.js"></script>
	<script type="text/javascript"
		src="<%=basePath%>js/jquery.thumbox.1.2.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/base_item.js"></script>
	<script type="text/javascript"
		src="<%=basePath%>js/product_v3-201608171716.js"></script> --%>
	<script type="text/javascript">
		$(function(){
			$("#header_title").html("个人中心");
		})
		
		function saveaddress(){
			$.ajax({
				type:"post",
				url:"<%=basePath%>mobile/address_insertOrUpdate",
				data : $("#addressform").serialize(),
				success : function(msg) {
					var info = eval('(' + msg + ')');
					if (info.code == "0000") {
						window.location.href="<%=basePath%>
		mobile/getAddresslist";
							} else {
								alert("操作失败");
							}
						}
					})
		}
	</script>
</body>
</html>